public class CharToInt {public static void main(String args[]) {
    int intResult, intVar = 10;
    System.out.println("240162704038王鹏飞");
    char charVar = '语';
    System.out.println("The char is: " + charVar);
    System.out.println("The char's Unicode is: " + Integer.toHexString(charVar));
    System.out.println("The int value corresponding to the char is: " + (int) charVar);
    intResult = intVar + charVar;
    System.out.println("int " + intVar + " adds the char, the results is: " + intResult);
}
}